package pkleczek.bugbrain;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
		// DEBUG
		Intent intent = new Intent(this, Laboratory.class);
		startActivity(intent);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_main, menu);
		return true;
	}

	public void gotoLocation(View view) {
		// System.out.println(view.toString());
		// System.out.println(findViewById(R.id.bLab).toString());

		if (view == findViewById(R.id.bLab)) {
			Intent intent = new Intent(this, Laboratory.class);
			startActivity(intent);
		}

		else if (view == findViewById(R.id.bSettings)) {
			Intent intent = new Intent(this, Settings.class);
			startActivity(intent);
		}
	}
}
